package com.smsclient.model;


import cn.hutool.core.util.ObjectUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel("查询短信模板参数对象")
@Data
public class OrgTemplateViewVo {

    @ApiModelProperty(value = "公司名称")
    private String orgName;

    @ApiModelProperty(value = "公司编码")
    private String orgCode;

    @ApiModelProperty(value = "模板名称")
    private String tamplateName;

    @ApiModelProperty(value = "模板状态")
    private String tamplateStatusName;

    private Integer tamplateStatus;

    /**
     * 模板内容
     */
    @ApiModelProperty(value = "模板内容")
    private String tamplateStr;
    /**
     * 模板签名
     */
    @ApiModelProperty(value = "模板签名")
    private String signature;

    public String getTamplateStatusName() {
        this.tamplateStatusName = ObjectUtil.isNull(this.tamplateStatus) ? "" :(1 == this.tamplateStatus ? "启用" : "禁用") ;
        return this.tamplateStatusName;
    }

    public void setTamplateStatusName(String tamplateStatusName) {
        this.tamplateStatusName = tamplateStatusName;
    }
}
